package com.aternity.vbd.collect.feedback;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collections;
import java.util.List;

/**
 * @author Daniel Orr
 */
@Service
//@Transactional
public class FeedbackService {


    @Autowired
    private FeedbackDao feedbackDao;


    public void insertFeedback(FeedbackData feedbackData) {
        feedbackDao.insertFeedback(feedbackData);
    }

    public List<FeedbackData> getFeedbacks() {
        return feedbackDao.getAllFeedbacks();
    }

    public void updateFeedback(FeedbackData feedbackData) {
        feedbackDao.updateFeedback(feedbackData);
    }

    public List<FeedbackData> getAllFeedbacks() {
        return feedbackDao.getAllFeedbacks();
    }

    public void deleteFeedback(FeedbackData feedbackData) {
        feedbackDao.deleteFeedback(feedbackData);
    }
}
